package com.lcm.learn.lcmcode.referenceTest;

import java.lang.ref.PhantomReference;
import java.lang.ref.SoftReference;
import java.lang.ref.WeakReference;

/**
 * @description:
 * @author: lcm
 * @create: 2019-11-29 11:50
 **/

public class ReferenceTest {
    public static void main(String[] args){
        Object object=new Object();
        SoftReference<Object> softReference=new SoftReference<>(object);
        WeakReference<Object> weakReference=new WeakReference<>(object);
    }
}
